package cn.dravenxiaokai.client;

import cn.dravenxiaokai.WeatherServiceImpl;
import cn.dravenxiaokai.WeatherServiceImplService;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Client {
    public static void main(String[] args) {
        //1.创建服务视图对象
        WeatherServiceImplService service = new WeatherServiceImplService();
        //2.获取服务实现类
        WeatherServiceImpl port = service.getPort(WeatherServiceImpl.class);
        //3.调用方法
        String query = port.query("大深圳");
        log.info(query);
    }

}
